package com.fmx.BookStore.mapper;

import com.fmx.BookStore.domain.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CategoryMapper {
    /**
     * 增删改查操作
     * @param categoryId
     * @return
     */
    Category getCategoryById(Long categoryId);
    List<Category> listCategory(Category category);
    int insertCategory(Category category);
    int updateCategory(Category category);
    int deleteCategoryById(Long categoryId);
}
